package com.itheima.utils;

import com.itheima.dao.UserInfoDao;
import com.itheima.domain.UserInfo;
import com.itheima.factory.MapperFactory;
import org.apache.ibatis.session.SqlSession;

public class TestDemo {
    public static void main(String[] args) {
        SqlSession session = MapperFactory.getSqlSession();
        System.out.println(session);
        UserInfoDao mapper = MapperFactory.getMapper(session, UserInfoDao.class);
        UserInfo test = mapper.login("test@itcast.cn", "test");
        System.out.println(test);
    }
}
